home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Trial / ConceptDraw NetDiagrammer / data1.cab / Samples__Basic / SimpleDrawing / DrawEllipses / ReadMe.txt < prev   
Encoding:
Text File  |  2006-02-08  |  812 b   |  2 lines

  1. This sample illustrates how to use the ConceptDraw Basic scripting language to build basic ConceptDraw shapes. It uses the DrawOval() method of the Page object to draw an ellipse. The procedure clears the active page of the document from all shapes on it. Then an ellipse is drawn. The coordinates, used to draw the ellipse, are generated randomly by using the Rnd() function. Then a fill color is applied to the ellipse, and its angle is changed. 
  2. The DrawEllipses() procedure is located in the external module DrawEllipses.cdb and is called from a document-level script. If the "Enable ConceptDraw Basic script autorun" flag is not set in the Preferences dialog of ConceptDraw, the script can be run from the ConceptDraw Basic editor (Tools->ConceptDraw Basic->Document Script->Edit) from the Build->Run menu.